package com.asion.vmovie.ui.MVPPresenter;

import com.asion.vmovie.beans.SeriesBean;
import com.asion.vmovie.ui.MVPContract.XiLieContract;

/**
 * Created by asion on 16-10-18.
 */

public class XiLiePresenter extends XiLieContract.Presenter {
    @Override
    public void getXiLieDatas(int p, int size) {
        mModel.getXiLieDatas(p, size, new XiLieContract.OnGetXiLieData() {
            @Override
            public void onGetSuccess(SeriesBean seriesBean) {
                mView.showDataSuccess(seriesBean);
            }

            @Override
            public void onGetError(Throwable throwable) {
                mView.showDataError(throwable);
            }
        });
    }
}
